	#{extends 'main.html' /}
#{set title:'create Topic' /}
 
<form action="@{Topics.createTopic()}" method="post">

	<div>
	

		Title: <input type="text" name="title" />
		<br><br>
	Type: <input type="text" name="Type" /><br><br>
	Content:	<textarea name="content" cols="40" rows="5">
         

  </textarea><br>

         <input type="hidden" id="entity.id" value=${entity.id} /> 
	</p>

	</div>

	<a href ="@{Topics.postTopic}">Post Topic </a>
	<br><br><br><br>
	

	
	#{if flag==false}
                  you are not allowed to Create A topic  
                #{/if}
#{if flag2==false}
                  There's another Topic with the same title  
                #{/if}

 
   <a href ="@{viewTopics()}">back to Topics </a>
	 
</form>

